//
//  YYJLNewShowCell.m
//  YuanyangJinlou
//
//  Created by mac004 on 2017/1/5.
//  Copyright © 2017年 suli19910309@qq.com. All rights reserved.
//

#import "YYJLNewShowCell.h"
@interface YYJLNewShowCell()
{
    UIImageView * showPic;//图片
    UILabel * titleLb;//描述
}
@end
@implementation YYJLNewShowCell
-(instancetype)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        [self creatUI];
    }
    return self;
}
-(void)creatUI{
    UIImageView * bgImg=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 174*PER_WIDTH, 242.5*PER_HEIGHT)];
    bgImg.image=[UIImage imageNamed:@"bg_xinpin"];
    [self.contentView addSubview:bgImg];
    
    showPic =[[UIImageView alloc]initWithFrame:CGRectMake(5*PER_WIDTH, 15*PER_HEIGHT, bgImg.width-10*PER_WIDTH, 160*PER_WIDTH)];
    showPic.image=[UIImage imageNamed:@"img_xinpin1"];
    [bgImg addSubview:showPic];
    
    titleLb=[MyControl createLabelWithFrame:CGRectMake(5*PER_WIDTH, showPic.bottom+15*PER_HEIGHT, showPic.width, 50*PER_HEIGHT) Font:13 Text:@"2016年冬季新品人造大理石钻石项链风靡上映" Color:BLACK_COLOR];
    titleLb.numberOfLines=0;
    [bgImg addSubview:titleLb];
}
@end
